package com.cyl.manager.oms.domain.form;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Data
@ApiModel(value = "管理后台订单DTO")
public class ManagerPlaceOrderDTO {

    @ApiModelProperty("ID")
    @NotNull(message = "订单ID 不能为空")
    private Long id;


    @ApiModelProperty("商品名")
    @NotBlank(message = "商品名不能为空")
    private String productName;

    @ApiModelProperty("商品数量")
    @NotNull(message = "商品数量不能为空")
    private Integer productCount;

    @ApiModelProperty("联系人")
    @NotBlank(message = "联系人不能为空")
    private String contactUserName;

    @ApiModelProperty("联系电话")
    @NotBlank(message = "联系电话不能为空")
    private String contactPhone;

    @ApiModelProperty("单位名称")
    @NotBlank(message = "单位名称不能为空")
    private String companyName;

    @ApiModelProperty("收货地址")
    @NotBlank(message = "收货地址不能为空")
    private String shippingAddress;


}
